package com.erp.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class OutStockExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OutStockExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andOutIdIsNull() {
            addCriterion("out_id is null");
            return (Criteria) this;
        }

        public Criteria andOutIdIsNotNull() {
            addCriterion("out_id is not null");
            return (Criteria) this;
        }

        public Criteria andOutIdEqualTo(Integer value) {
            addCriterion("out_id =", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotEqualTo(Integer value) {
            addCriterion("out_id <>", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdGreaterThan(Integer value) {
            addCriterion("out_id >", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("out_id >=", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdLessThan(Integer value) {
            addCriterion("out_id <", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdLessThanOrEqualTo(Integer value) {
            addCriterion("out_id <=", value, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdIn(List<Integer> values) {
            addCriterion("out_id in", values, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotIn(List<Integer> values) {
            addCriterion("out_id not in", values, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdBetween(Integer value1, Integer value2) {
            addCriterion("out_id between", value1, value2, "outId");
            return (Criteria) this;
        }

        public Criteria andOutIdNotBetween(Integer value1, Integer value2) {
            addCriterion("out_id not between", value1, value2, "outId");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameIsNull() {
            addCriterion("out_goodsName is null");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameIsNotNull() {
            addCriterion("out_goodsName is not null");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameEqualTo(String value) {
            addCriterion("out_goodsName =", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameNotEqualTo(String value) {
            addCriterion("out_goodsName <>", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameGreaterThan(String value) {
            addCriterion("out_goodsName >", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameGreaterThanOrEqualTo(String value) {
            addCriterion("out_goodsName >=", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameLessThan(String value) {
            addCriterion("out_goodsName <", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameLessThanOrEqualTo(String value) {
            addCriterion("out_goodsName <=", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameLike(String value) {
            addCriterion("out_goodsName like", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameNotLike(String value) {
            addCriterion("out_goodsName not like", value, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameIn(List<String> values) {
            addCriterion("out_goodsName in", values, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameNotIn(List<String> values) {
            addCriterion("out_goodsName not in", values, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameBetween(String value1, String value2) {
            addCriterion("out_goodsName between", value1, value2, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnameNotBetween(String value1, String value2) {
            addCriterion("out_goodsName not between", value1, value2, "outGoodsname");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceIsNull() {
            addCriterion("out_goodsPrice is null");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceIsNotNull() {
            addCriterion("out_goodsPrice is not null");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceEqualTo(Double value) {
            addCriterion("out_goodsPrice =", value, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceNotEqualTo(Double value) {
            addCriterion("out_goodsPrice <>", value, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceGreaterThan(Double value) {
            addCriterion("out_goodsPrice >", value, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceGreaterThanOrEqualTo(Double value) {
            addCriterion("out_goodsPrice >=", value, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceLessThan(Double value) {
            addCriterion("out_goodsPrice <", value, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceLessThanOrEqualTo(Double value) {
            addCriterion("out_goodsPrice <=", value, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceIn(List<Double> values) {
            addCriterion("out_goodsPrice in", values, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceNotIn(List<Double> values) {
            addCriterion("out_goodsPrice not in", values, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceBetween(Double value1, Double value2) {
            addCriterion("out_goodsPrice between", value1, value2, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodspriceNotBetween(Double value1, Double value2) {
            addCriterion("out_goodsPrice not between", value1, value2, "outGoodsprice");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumIsNull() {
            addCriterion("out_goodsNum is null");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumIsNotNull() {
            addCriterion("out_goodsNum is not null");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumEqualTo(Integer value) {
            addCriterion("out_goodsNum =", value, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumNotEqualTo(Integer value) {
            addCriterion("out_goodsNum <>", value, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumGreaterThan(Integer value) {
            addCriterion("out_goodsNum >", value, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("out_goodsNum >=", value, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumLessThan(Integer value) {
            addCriterion("out_goodsNum <", value, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumLessThanOrEqualTo(Integer value) {
            addCriterion("out_goodsNum <=", value, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumIn(List<Integer> values) {
            addCriterion("out_goodsNum in", values, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumNotIn(List<Integer> values) {
            addCriterion("out_goodsNum not in", values, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumBetween(Integer value1, Integer value2) {
            addCriterion("out_goodsNum between", value1, value2, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodsnumNotBetween(Integer value1, Integer value2) {
            addCriterion("out_goodsNum not between", value1, value2, "outGoodsnum");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeIsNull() {
            addCriterion("out_goodsType is null");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeIsNotNull() {
            addCriterion("out_goodsType is not null");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeEqualTo(String value) {
            addCriterion("out_goodsType =", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeNotEqualTo(String value) {
            addCriterion("out_goodsType <>", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeGreaterThan(String value) {
            addCriterion("out_goodsType >", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeGreaterThanOrEqualTo(String value) {
            addCriterion("out_goodsType >=", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeLessThan(String value) {
            addCriterion("out_goodsType <", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeLessThanOrEqualTo(String value) {
            addCriterion("out_goodsType <=", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeLike(String value) {
            addCriterion("out_goodsType like", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeNotLike(String value) {
            addCriterion("out_goodsType not like", value, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeIn(List<String> values) {
            addCriterion("out_goodsType in", values, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeNotIn(List<String> values) {
            addCriterion("out_goodsType not in", values, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeBetween(String value1, String value2) {
            addCriterion("out_goodsType between", value1, value2, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodstypeNotBetween(String value1, String value2) {
            addCriterion("out_goodsType not between", value1, value2, "outGoodstype");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateIsNull() {
            addCriterion("out_goodsDate is null");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateIsNotNull() {
            addCriterion("out_goodsDate is not null");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateEqualTo(Date value) {
            addCriterionForJDBCDate("out_goodsDate =", value, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("out_goodsDate <>", value, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateGreaterThan(Date value) {
            addCriterionForJDBCDate("out_goodsDate >", value, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("out_goodsDate >=", value, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateLessThan(Date value) {
            addCriterionForJDBCDate("out_goodsDate <", value, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("out_goodsDate <=", value, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateIn(List<Date> values) {
            addCriterionForJDBCDate("out_goodsDate in", values, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("out_goodsDate not in", values, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("out_goodsDate between", value1, value2, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andOutGoodsdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("out_goodsDate not between", value1, value2, "outGoodsdate");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}